﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets; 

namespace TCPClient
{
    class Sender: OwningTcpClient, ISend
    {
        public Sender(TcpClient c)
            : base(c)
        {

        }

        public void send(string message)
        {
            byte[] tmp = MADSystem.ToByteArray(message); 
            this.getClient().GetStream().Write(tmp, 0, tmp.Length); 
        }
    }
}
